package com.design.pattern.command;

/**
 * Created by Administrator on 2016/5/18.
 * 具体命令角色
 */
public class PlayCommand implements Command{
    private AudioPlayer audioPlayer;

    public PlayCommand(AudioPlayer audioPlayer) {
        this.audioPlayer = audioPlayer;
    }

    @Override
    public void execute() {
        this.audioPlayer.play();
    }
}
